package com.beimin.evedata.model.dgm;

import java.io.Serializable;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 *
 * @author Candle
 */
@Entity
@Table(name = "dgmTypeAttributes")
public class DgmTypeAttribute implements Serializable {
  
  @EmbeddedId
  @AttributeOverrides(
          {
          @AttributeOverride(name="typeID", column=@Column(name = "typeID", nullable = false)),
          @AttributeOverride(name= "attributeID", column=@Column(name = "attributeID", nullable = false))
          }
  )
  DgmTypeAttributeID id;

  Integer valueInt;
  Double valueFloat;

  public DgmTypeAttributeID getId() {
    return id;
  }

  public void setId(DgmTypeAttributeID id) {
    this.id = id;
  }

  public Double getValueFloat() {
    return valueFloat;
  }

  public void setValueFloat(Double valueFloat) {
    this.valueFloat = valueFloat;
  }

  public Integer getValueInt() {
    return valueInt;
  }

  public void setValueInt(Integer valueInt) {
    this.valueInt = valueInt;
  }
}
